package cate.game.role.res.guild.boss.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdGuild;
import cate.game.role.res.guild.boss.GuildBossPO;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "公会boss的数据 の 返回")
public class GuildBossDataResp implements MsgOutput {
    public GuildBossDataResp() {
    }

    @NoteField(value = "已通过第几关")
    public int combatNumPass;

    @NoteField(value = "当前boss剩余血量")
    public double curHp;

    @NoteField(value = "buff层数")
    public int buffNum;

    @NoteField(value = "buff失效时间")
    public long buffInvalidTime;

    public GuildBossDataResp(GuildBossPO boss) {
        this.combatNumPass = boss.combatNumPass;
        this.curHp = boss.curHp;
        this.buffNum = boss.buffNum;
        this.buffInvalidTime = boss.buffInvalidTime;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdGuild.BOSS_DATA_RESP;
    }
}
